from django.shortcuts import render, HttpResponse, reverse, redirect


# Create your views here.
def blog(request, *args, **kwargs):
    print(reverse('app02:home'))
    return HttpResponse('ok')


def blogs(request, year, month, *args, **kwargs):
    return HttpResponse('o98k')


def home(request):
    print(reverse('app01:blogs', args=('2020', '10')))
    print(reverse('app01:blogs', kwargs={'year': '2019', 'month': '12'}))
    return render(request, 'home.html')
    # return redirect('blogs','2020', '10')
